import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import PageHtml from 'vite-plugin-page-html'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue(),
  PageHtml({
    page: {
      index: {
        entry: 'src_first/pages/main/main.js',
        template: 'src_first/pages/main/index.html',
        title: '首页',
      },
      'tool1': {
        entry: 'src_first/pages/tool1/main.js' ,
        template: 'src_first/pages/tool1/tool1.html',
        title: 'Product list',
      }
    }
  })
  ]
})